import App from './App'
import messages from './locale/index'
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import api from '@/common/js/api.js'
import store from './store'
import uView from '@/uni_modules/uview-ui'
Vue.prototype.$api = api
Vue.use(uView)
Vue.use(VueI18n)
let i18nConfig = {
  locale: uni.getLocale(),
  messages
}

const i18n = new VueI18n(i18nConfig)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  i18n,
  ...App,
	store
})
app.$mount()

